package com.pxy.test;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class Main22Activity extends AppCompatActivity implements View.OnClickListener, View.OnLongClickListener {
    private TextView mTv3;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main22);
        mTv3 = (TextView) findViewById(R.id.tv3);
        mTv3.setOnClickListener(this);
        mTv3.setOnLongClickListener(this);
    }

    @Override
    public void onClick(View view) {

        Log.e("PXY", "onClick  tv3: ");
    }

    @Override
    public boolean onLongClick(View view) {
        Log.e("PXY", "onLongClick  tv3: ");
        return true;
    }
}
